<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Contest template preview</title>
    </head>
    <body>
        <center>
            <div>
                <?php 
                    if(isset($_GET['template']) && file_exists("templates/{$_GET['template']}/preview.png")) {
                        ?>
                        <img src="templates/<?php echo $_GET['template'];?>/preview.png" />
                        <?php
                    } else {
                        ?>
                        <h1>The preview is not available!!!</h1>
                        <?php 
                    }
                ?>
            </div>
        </center>
        
    </body>
</html>
